package com.cdu.guoxinan.www.smartcom.service;

import com.cdu.guoxinan.www.smartcom.domian.dto.ComplaintDTO;
import com.cdu.guoxinan.www.smartcom.domian.dto.QueryCompDTO;
import com.cdu.guoxinan.www.smartcom.domian.pojo.Complaint;
import com.cdu.guoxinan.www.smartcom.domian.vo.ComplaintVO;
import com.github.pagehelper.PageInfo;

public interface ComplaintService {

    PageInfo<ComplaintVO> getAllComplaints(QueryCompDTO queryCompDTO);

    boolean add(ComplaintDTO complaint);

    boolean update(Complaint complaint);

    boolean delete(Long complaintId);

    PageInfo<ComplaintVO> getAllById(Long complaintId);
}
